const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, 
  publicPath: process.env.NODE_ENV === 'production'
  ? '/vue_manage/'
  : '/',
  devServer: {
    proxy: { //proxy代理解决跨域
        '/whz': {
            target: 'http://www.kuaidi100.com:80',
            changeOrigin: true,
            pathRewrite: {
                '^/whz': '',
            },
             changeOrigin: true,
             ws: true,
        },
    }
}

})
